<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>备份数据库</title>
<script type="text/javascript">
var xmlHttp;
function setXmlHttpRequest()
{
	if(window.ActiveXObject)
	{
		xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
		}
		else if(window.XMLHttpRequest)
		{
			xmlHttp = new XMLHttpRequest();
			}
	}
	
	function ajaxFun(url,funName)
	{
		setXmlHttpRequest();
		url = encodeURI(url);
		xmlHttp.open("GET",url,true);
		xmlHttp.onreadystatechange = funName;
		xmlHttp.send(null);
		}
		function bakup()
		{
			var url = "admin_core/control.php?action=BakDB";
			ajaxFun(url,returnFun);
			}
			function returnFun()
			{
				if(xmlHttp.readyState == 4)
				{
					if(xmlHttp.status == 200)
					{
				var content = xmlHttp.responseText;
			
				if(content=="success")
				{
					document.getElementById('bak').innerHTML="<img src=\"images/success.gif\" title=\"备份成功.....\" /><br />备份成功！";
					}
				}
				}
				}

</script>
</head>

<body style="font-size: 13px; color:#666; font-weight:bold;" onLoad="bakup()">
<center>

<div style="width:100%; height:100px;">

</div>
<span id="bak">
<img src="images/loading.gif" title="备份中....." /><br />
正在备份中......</span>
</center>
</body>
</html>